package com.timoon.page;

import java.util.LinkedList;
import java.util.List;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.request.mapper.parameter.PageParameters;

import com.timoon.webcomponent.utility.common.ThemePanel;
import com.timoon.webcomponent.utility.navs.NavParameter;
import com.timoon.webcomponent.utility.product.sort.sortnav1.InsideNavsPanel;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public class Page1 extends WebPage {

	public Page1(PageParameters pageParameter) {
		// TODO Auto-generated constructor stub		
		add(new ThemePanel("wk_theme"));
		
		List<NavParameter> navs=new LinkedList<NavParameter>();
		navs.add(new NavParameter("fewiofi"){{
			this.setText("123");
			this.setTargetPage(Page1.class);
			
			List<NavParameter> child=new LinkedList<NavParameter>();
			child.add(new NavParameter("fekh45"){{
				this.setText("123");
				this.setTargetPage(Page1.class);
			}});
			this.setChilds(child);
			
		}});

		
		navs.add(new NavParameter("feioi"){{
			this.setText("付乐天");
			this.setTargetPage(Page1.class);
			
			List<NavParameter> child=new LinkedList<NavParameter>();
			child.add(new NavParameter("2kh45"){{
				this.setText("1234");
				this.setTargetPage(Page1.class);
			}});
			child.add(new NavParameter("lwiwei"){{
				this.setTargetPage(Page1.class);
				this.setText("123456");
			}});
			this.setChilds(child);
		}});
		
//		add(new RedNavPanel("wk_nav", navs,pageParameter));
		
		//add(new JdNavPanel("wk_nav", navs));
		
		add(new InsideNavsPanel("wk_nav",Page5.class));
		
	}
}
